package edu.kaist.cs408.pof.common.model;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;
import com.google.code.morphia.annotations.Indexed;
import com.google.code.morphia.annotations.Reference;
import org.bson.types.ObjectId;

/**
 * Created with IntelliJ IDEA.
 * User: duyleekun
 * Date: 5/9/12
 * Time: 10:48 PM
 * To change this template use File | Settings | File Templates.
 */
@Entity("Talk")
public class TalkVo {
	@Id
	ObjectId mid;

	@Reference
	KaistianVo user;

	@Reference
	@Indexed
	RestaurantVo restaurant;

	@Indexed
	@Reference
	DishVo dish;

	String content;

	public TalkVo(String content) {
		this.content = content;
	}

	public TalkVo() {
	}

	public ObjectId getMid() {
		return mid;
	}


	public UserVo getUser() {
		return user;
	}

	public RestaurantVo getRestaurant() {
		return restaurant;
	}

	public DishVo getDish() {
		return dish;
	}

	public String getContent() {
		return content;
	}
}
